package com.tjc.test;

import com.tjc.common.CommonService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName Controller
 * @Author tjc
 **/
@RestController
public class Controller {
    @DubboReference
    CommonService commonService;

    @GetMapping("/test")
    public String test() {
        Boolean count = commonService.invokeCount(1L);
        return count.toString();
    }
}
